<#include "header.ftl" /> 
<#include "footer.ftl" />
<#include "../macros/utils.ftl" />
<#import "../macros/spring.ftl" as spring />

 

<#macro masterTemplate wtSection="" wtSubsection="" title="" bodycss="" wrappercss="bg" section="" subsection="" pagename="" color="" sectionIdx="0">
  <!doctype html>
    <#if isMobile()>
      <html lang="en-US">
    <#else>
      <!--[if lt IE 9]><html class="no-js ie lt-ie9" lang="en"><![endif]-->
      <!--[if IE 9]><html class="no-js ie ie9"><![endif]-->
      <!--[if gt IE 9]><!--> <html class="no-js" lang="en-US"><!--<![endif]-->
    </#if>
  <head>
    <@cssLinks section subsection />
  </head>
  <body class="cf warning-initial ${bodycss} ${color}" data-wt-section="${wtSection}" data-wt-subsection="${wtSubsection}">

      <#--msg alert - modal-->
      <div class="modal fade" id="alertModal" tabindex="-1" role="dialog" aria-labelledby="alertModal" aria-hidden="true">
        <div class="modal-dialog modal-sm">
          <div class="alert alert-success">
            
          </div>
        </div>
      </div>

      <div class="modal fade" id="confirmDialog" tabindex="-1" role="dialog" aria-labelledby="confirmDialog" aria-hidden="true">
          <div class="modal-dialog">
              <div class="modal-content ">
                  <div class="modal-header alert-danger">
                      <strong>confirm delete</strong>
                  </div>
                  <div class="modal-body ">
                      you are about to delete one record, this procedure is irreversible.<br>
                      Do you want to proceed?
                  </div>
                  <div class="modal-footer">
                      <button type="button" class="btn btn-default" data-dismiss="modal">cancel</button>
                      <a class="btn btn-danger btn-ok confirm-delete">delete</a>
                  </div>
              </div>
          </div>
      </div>
      <@menu sectionIdx />
      <div id="wrapper" class="${wrappercss}  cf">
        <div id="container" class="cf">
          <#nested>
        </div>
        <@footer />
      </div>
      <#include "footer.ftl">
      <#if isMobile()>
        <script type="text/javascript">
          <#include "<@spring.url '/js/base.thin.js' />">;
          <#include "<@spring.url '/js/modules/modal.thin.js' />">;
        </script>
      <#else>
        <script type="text/javascript">
            require(['']);
        </script>
      </#if>
      <@scripts/>
  </body>
</html>	
</#macro>